#include "StdAfx.h"
#include ".\emergency.h"

int     g_nEmergencyFireStatus = 0;
DWORD   g_dwEmergencyTick = 0;
WCHAR   g_szEmergencyVideo[100] = {0};

void EnableEmergencyStatus( BOOL enable  )
{
	g_nEmergencyFireStatus = enable ;
}

BOOL IsEmergencyStatus(void)
{
	return g_nEmergencyFireStatus;
}

void  InitFireStatus(void)
{
	if( !IsEmergencyStatus( ) )
	{
		g_dwEmergencyTick = GetTickCount() ;
		memset( g_szEmergencyVideo, 0, sizeof(g_szEmergencyVideo) );
		wsprintf( g_szEmergencyVideo, L"MPG\\FIRE.MPG" );
	}

	EnableEmergencyStatus( TRUE );
}